package com.homedo.odin.solution.model.response.pc;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@ApiModel(description = "PC广告对象")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class AdServingsResponseBean extends BaseResponse {

    @ApiModelProperty("投放标识")
    private Long id;
    @ApiModelProperty("广告投放编号")
    private String adNumber;
    @ApiModelProperty("广告类型，0：默认广告，1：投放广告")
    private Integer adType;
    @ApiModelProperty("广告位所属编号")
    private String positionCode;
    @ApiModelProperty("广告标题")
    private String title;
    @ApiModelProperty("广告链接")
    private String clickRedirectUrl;
    @ApiModelProperty("广告资源（图片视频）链接")
    private String resourceUrl;
    @ApiModelProperty("广告文本信息")
    private String resourceText;
    @ApiModelProperty("资源类型，0：文本，1：图片，2：视频")
    private Integer resourceType;
    @ApiModelProperty("广告投放用户群")
    private String userGroup;
    @ApiModelProperty(value = "广告投放用户群Db值", hidden = true)
    private Integer userGroupId;

    @ApiModelProperty(value = "上架时间，默认广告为Null")
    @JsonFormat(timezone = "GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date shelveTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(timezone = "GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;
}
